//
//  Extension+UILabel.swift
//  小蜗牛_新浪微博
//
//  Created by 周冬冬 on 16/6/27.
//  Copyright © 2016年 我的mac. All rights reserved.
//

import UIKit

extension UILabel{

    convenience init(textColor:UIColor, textFont:CGFloat,MaxWith:CGFloat = 0){
    
        self.init()
    
    self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textFont)
        
        if MaxWith > 0{
        
            self.numberOfLines = 0
            self.preferredMaxLayoutWidth = MaxWith
        
        
        }
    
    }




}
